/**
 * Created by paul on 09/05/14.
 */
BasicGame.Preloader = function (game) {


};

BasicGame.Preloader.prototype = {

    preload: function () {
        console.log('Preloader is alive');

        game.load.image('mainmenu_background', 'sprites/mainmenu_background.png');
        game.load.audio('mainmenu_music', ['sounds/PharrellWilliamsAdventures.mp3','sounds/PharrellWilliamsAdventures.ogg']);
        game.load.bitmapFont('oldschool_font', 'fonts/oldschool.png', 'fonts/oldschool.xml');
    },

    create: function () {
        console.log('Preloader create');
        this.game.state.start('MainMenu', true, false);
    },

    update: function() {

    }

};